package com.campusevaluation.common.utils;

import com.campusevaluation.common.constant.FormatConstant;
import java.util.regex.Pattern;

public class FormatUtil {
    public static Boolean isEmail(String email) {
        return Pattern.matches(FormatConstant.EMAIL_PATTERN, email);
    }
    public static Boolean isPhone(String phone) {
        return Pattern.matches(FormatConstant.PHONE_PATTERN, phone);
    }
    public static Boolean isNumber(String number) {
        return Pattern.matches(FormatConstant.NUMBER_PATTERN, number);
    }
}
